/*---------------------------------------------------------------------------------------*/

var path = [
    [//home go to the bamboo
        [108.571007, 31.028497],
        [108.570967, 31.028567],
        [108.570970594619, 31.028729112414],
        [108.570958930122, 31.028767903646],
        [108.570944, 31.028904],
        [108.570917, 31.028961],
        [108.570903, 31.028987],
    ],
    [// home go to the cibaishu
        [108.571007, 31.028497],
        [108.571142578125, 31.028535698785],
        [108.57117702908, 31.028563096789],
        [108.571173502605, 31.028613552518],
        [108.571202528212, 31.028629014757],
        [108.571201443143, 31.02867702908],
        [108.571182725695, 31.028771158855],
        [108.571180826823, 31.028859320747],
        [108.571214735244, 31.028901095921],
        [108.571273871528, 31.028952094185],
        [108.571263020834, 31.02905327691],
        [108.571209852431, 31.02916015625],
        [108.57116265191, 31.029265679254],
        [108.571163194445, 31.029363064237],
        [108.57119249132, 31.029452853733],
        [108.571235080296, 31.029568413629],
        [108.571324869792, 31.029641384549],
        [108.57138671875, 31.029680447049],
    ],
    [// outdoor vegetable middle back home
        [108.571271, 31.028928],
        [108.571267632379, 31.028858506945],
        [108.57129530165, 31.028813476563],
        [108.571330566407, 31.028776312935],
        [108.571376410591, 31.028731011285],
        [108.571417371962, 31.028624945747],
        [108.571427137587, 31.028533257379],
        [108.571421169705, 31.028450520834],
        [108.571440700955, 31.028324110244],
        [108.571448025174, 31.028283420139],
        [108.571228,31.028419],
        [108.57117,31.028495]//ox  
    ],
    [//liu's couryard go to the Small_hill last point
        [108.568413085938, 31.035210232205],
        [108.568451605903, 31.035231119792],
        [108.56864935981, 31.035138617622],
        [108.568749728733, 31.035081380209],
        [108.568926595053, 31.035101182726],
        [108.569085557726, 31.035062934028],
        [108.569183213976, 31.035131564671],
        [108.569335666233, 31.03520562066],
        [108.569364963108, 31.035172254775],
        [108.569367404514, 31.035174967448],
        [108.569577636719, 31.034963921441],
        [108.569612630209, 31.034775661893],
        [108.569676378039, 31.03469889323],
        [108.569564887153, 31.034561360678],
        [108.56968858507, 31.034431152344],
        [108.56982014974, 31.034419759115],
        [108.56966498481, 31.034248046875],
        [108.569712727865, 31.034144422744],
        [108.569941948785, 31.034032118056],
        [108.569866536459, 31.03398952908],
        [108.569889594185, 31.033848198785],
        [108.56982937283, 31.033858235678],
        [108.569794921875, 31.033924696181],
        [108.569921875, 31.033883463542],
        [108.569896647136, 31.033805067275],
        [108.570189887153, 31.033766004775],
        [108.570349934896, 31.033644476997],
        [108.570527886285, 31.033598361546],
        [108.570661349827, 31.033387586806],
        [108.570735134549, 31.033372124566],
        [108.570614149306, 31.03312201606],
        [108.570750325521, 31.0331507704],
        [108.570809461806, 31.033087565105],
        [108.570911187066, 31.032869466146],
        [108.570894639757, 31.032664388021],
        [108.570799696181, 31.032559136285],
        [108.570843641494, 31.032340223525],
        [108.57071451823, 31.032256673178],
        [108.570872395834, 31.032011990018],
        [108.570886773004, 31.031808539497],
        [108.570802137587, 31.031651204428],
        [108.570787217882, 31.031466471355],
        [108.570752224393, 31.031377766928],
        [108.570596788195, 31.03121609158],
        [108.570502387153, 31.031028374566],
        [108.570567220053, 31.031020507813],
        [108.570534939237, 31.030912543403],
        [108.570425889757, 31.03087999132],
        [108.570576443143, 31.030951063369],
        [108.570435112848, 31.031011284723],

        [108.570623372396, 31.030901692709],
        [108.570638020834, 31.030919325087],
        [108.570656467014, 31.030873209636],
        [108.570731879341, 31.030766330296],
        [108.57063123915, 31.030853407119],

        [108.570963812935, 31.030730794271],
        [108.570959201389, 31.030686306424],
        [108.570937228733, 31.03061686198],
        [108.570881347657, 31.030554741754],
        [108.570803222657, 31.030576985678],
        [108.570787217882, 31.030506184896],
        [108.570743543837, 31.030431043837],
        [108.570759548612, 31.030396592882],
        [108.570779079862, 31.030339626737],
        [108.570763617622, 31.03030951606],
    ],
    [//RanJia's home go to the stream path
        [108.571175130209, 31.02645562066],
        [108.571340874566, 31.026414930556],
        [108.571354980469, 31.026454535591],
        [108.571332736546, 31.026424967448],
        [108.571317816841, 31.026405436198],
        [108.571526963976, 31.026598036025],
        [108.571643880209, 31.026536187066],
        [108.571697319879, 31.026463487414],
        [108.571687282987, 31.026378309462],
        [108.571675347223, 31.026365017362],
        [108.571804470487, 31.026335991754],
        [108.571951226129, 31.026223687066],
        [108.57198296441, 31.026319444445],
        [108.571970486112, 31.026330566407],
    ],
    [//there is RanJia's house go to the way, but it's estimated
        [108.570935, 31.027289],
        [108.571085, 31.026988],
        [108.571252, 31.026777],
    ],
    [//there is Big_hill go to the big way ,and have a build
        [108.567559407553, 31.034644911025],
        [108.567808702257, 31.034616970487],
        [108.567653808594, 31.034414876303],
        [108.567708062066, 31.034414876303],
        [108.567707790799, 31.034405381945],
        [108.567717556424, 31.034381781685],
        [108.567713216146, 31.034348144532],
        [108.567723253039, 31.03434624566],
        [108.567826877171, 31.034270833334],
        [108.567880316841, 31.034204101563],
        [108.567902289497, 31.034182400174],
        [108.56796875, 31.03415608724],
        [108.568063151042, 31.034123806424],
        [108.568095703125, 31.034060872396],
        [108.568061523438, 31.034050835504],
        [108.568039279514, 31.034091525608],
        [108.568053927952, 31.034147949219],
        [108.568078070747, 31.03414577908],
        [108.568114149306, 31.034100477431],
        [108.568193630643, 31.034065755209],
        [108.568271755643, 31.034031304254],
        [108.568321940105, 31.03395046658],
        [108.568288031685, 31.033873155382],
        [108.568329264323, 31.033776584202],
        [108.568318956164, 31.033748643664],
        [108.568315700955, 31.033750813803],
        [108.568293728299, 31.03379530165],
        [108.568356933594, 31.033686523438],
        [108.568355848525, 31.033686252171],
        [108.568353678386, 31.033684353299],
        [108.568352322049, 31.033682454428],
        [108.568352322049, 31.03368218316],
        [108.568352864584, 31.033681640625],
        [108.568355034723, 31.033676215278],
        [108.568356933594, 31.033672146268],
        [108.568363172744, 31.033665364584],
        [108.568395724827, 31.033659125435],
        [108.568451877171, 31.03364312066],
        [108.568448621962, 31.033626844619],
        [108.568436143664, 31.033611924914],
        [108.568430447049, 31.033602159289],
        [108.56843858507, 31.033601074219],
        [108.568432345921, 31.033592393664],
        [108.56843451606, 31.033573947483],
        [108.568446451823, 31.033543836806],
        [108.568483344185, 31.033530273438],
        [108.568520507813, 31.033518066407],
        [108.568575032553, 31.033489854601],
        [108.568615180122, 31.033453504775],
        [108.568661295573, 31.033424479167],
        [108.568676215278, 31.033415798612],
        [108.568718532987, 31.033410373264],
        [108.568776584202, 31.033402506511],
        [108.568814019098, 31.033402777778],
        [108.568868815105, 31.033403049046],
        [108.568898925782, 31.033400336372],
        [108.568917100695, 31.033381890191],
        [108.568937988282, 31.033357476129],
        [108.568973524306, 31.033394639757],
        [108.568982747396, 31.033442382813],
        [108.568977864584, 31.033463541667],
        [108.568973524306, 31.033475206164],
        [108.568982476129, 31.033490397136],
        [108.56902045356, 31.033513997396],
        [108.569043782553, 31.03353108724],
        [108.569074164497, 31.03353624132],
        [108.569090440539, 31.033527560764],
        [108.569117567275, 31.033509385851],
        [108.569154459636, 31.033490939671],
        [108.569216851129, 31.033460015191],
        [108.569252658421, 31.033433702257],
        [108.56923529731, 31.033439398872],
        [108.569220106337, 31.033460828994],
        [108.569251302084, 31.03347357856],
        [108.569280327691, 31.033474392362],
        [108.569306369358, 31.033474121094],
        [108.569332139757, 31.033470865886],
        [108.569487304688, 31.033563639323],
        [108.569515516494, 31.033533528646],
        [108.569498697917, 31.033434244792],
        [108.569488661025, 31.033394639757],
        [108.569596896702, 31.033330891928],
        [108.569692111546, 31.033331163195],
        [108.569730902778, 31.033321126303],
        [108.569807671441, 31.033260091146],
        [108.569828559028, 31.033232421875],
        [108.569833713108, 31.033183865018],
        [108.569843207466, 31.033170030382],
        [108.570240342882, 31.032918294271],
        [108.570277235244, 31.032819824219],
        [108.570353732639, 31.032725694445],
        [108.570385470921, 31.032667100695],
        [108.570194769966, 31.032604980469],
        [108.570158962674, 31.032558865018],
        [108.570094401042, 31.032505425348],
        [108.570218098959, 31.03230061849],
        [108.570193142362, 31.032239854601],
        [108.570246853299, 31.032122124566],
        [108.570288628473, 31.032096354167],
        [108.570258, 31.032039],
    ],
    [// there is small and small way
        [108.571442871094, 31.028321668837],
        [108.571441, 31.028228],
        [108.57141248915, 31.028165690105],
        [108.571417914497, 31.028076443143],
        [108.571442871094, 31.028045789931],
        [108.571453993056, 31.028023546007],
        [108.571470540365, 31.028019476997],
        [108.571458333334, 31.02801405165],
        [108.571451822917, 31.028017306858],
    ],
    [//JIUJIU's home
        [108.567327473959, 31.030855577257],
        [108.567354329428, 31.030775553386],
        [108.567262098525, 31.030644802518],
        [108.567090386285, 31.030657280816],
        [108.566914605035, 31.030528700087],
        [108.56678873698, 31.030483398438],
        [108.566946614584, 31.030376790365],
        [108.566944444445, 31.030340169271],
        [108.566893174914, 31.030023057726],
        [108.566915961372, 31.030093858507],
        [108.566764865452, 31.029946289063],
        [108.56703125, 31.029807671441],
        [108.566857638889, 31.029865451389],
        [108.566941731771, 31.029877929688],
        [108.566985677084, 31.029749891494],
        [108.566991916233, 31.029717881945],
        [108.567017144098, 31.029681803386],
        [108.567027994792, 31.029658474393],
        [108.56671061198, 31.029209798178],
        [108.566369086372, 31.02911702474],
        [108.566456163195, 31.029129231771],
        [108.566458062066, 31.029079589844],
        [108.566166449653, 31.029221733941],
        [108.56629014757, 31.028879937066],
        [108.566159667969, 31.028792860244],
        [108.566113823785, 31.028727213542],
        [108.565877278646, 31.028601074219],
        [108.565717773438, 31.028419867622],
        [108.565845269098, 31.028416612414],
        [108.565483398438, 31.028217502171],
        [108.565427788629, 31.028272298178],
    ],
    [//The path in the opposite hill
        [108.571654459636, 31.02803765191],
        [108.57186062283, 31.028014865452],
        [108.571763509115, 31.028141276042],
        [108.571784396702, 31.028170030382],
        [108.571789822049, 31.02817030165],

        [108.572207302518, 31.028618706598],
        [108.572296820747, 31.028662380643],
        [108.572240668403, 31.028607313369],

        [108.572600911459, 31.028821072049],
        [108.572824707032, 31.028950195313],
        [108.572934570313, 31.028991427952],
        [108.572859700521, 31.028982204862],
        [108.572631564671, 31.029017198351],
        [108.57277859158, 31.029164496528],
        [108.572843695747, 31.029430338542],
        [108.572905273438, 31.029641384549],

        [108.572977701823, 31.029930284289],
        [108.572942979601, 31.030105251737],
        [108.572945421007, 31.030305718316],
        [108.572888726129, 31.030449761285],
        [108.572900390625, 31.030428059896],
        [108.57290201823, 31.03049967448],
        [108.572967664931, 31.030500759549],
        [108.572988009983, 31.030528157553],
        [108.572981228299, 31.030902506511],
        [108.573061523438, 31.030884602865],
        [108.573054199219, 31.030888671875],
        [108.573149414063, 31.030881347657],
        [108.573225097657, 31.031061740452],
        [108.573285319011, 31.031107855903],
        [108.573329806858, 31.03115234375],
        [108.573316514757, 31.031179470487],
        [108.573337944879, 31.031203613282],
        [108.573329535591, 31.031218261719],
        [108.573301323785, 31.031227756077],
        [108.573294270834, 31.031264648438],

        [108.573258463542, 31.031259223091],
        [108.573212348091, 31.0313538954],
        [108.573173014323, 31.031618652344],
        [108.573279893664, 31.031561143664],
        [108.573290744358, 31.031799045139],
        [108.573259006077, 31.031946614584],
        [108.573249511719, 31.03211561415],
        [108.573094346789, 31.03228217231],
        [108.573124186198, 31.032324761285],
        [108.573157280816, 31.032366807726],
        [108.573313530816, 31.032636447483],
        [108.573333333334, 31.032800292969],
        [108.573166503907, 31.033014322917],
        [108.573229709202, 31.032988009983],
        [108.573315429688, 31.033349609375],
        [108.573342285157, 31.033271755643],
        [108.57332546658, 31.033423394098],
        [108.573430175782, 31.0335804579],
        [108.573322211372, 31.033606499566],

    ]
];

//河流path
var path_stream = [
    [108.57225, 31.025865],
    [108.572026, 31.026358],
    [108.571809895834, 31.026775987414],
    [108.571685655382, 31.027465820313],
    [108.571542154948, 31.027555338542],
    [108.571360677084, 31.027630208334],
    [108.571424424914, 31.027699381511],
    [108.571518283421, 31.028033040365],
    [108.57156732253134, 31.028084008488108],
    [108.57161398654569, 31.0284354654951],
    [108.57169297960111, 31.028441975911704],
    [108.571781, 31.028808],
    [108.571752, 31.029184],
    [108.571641, 31.029451],
    [108.571844, 31.029641],
    [108.57179, 31.029906],
];

var polyline = new AMap.Polyline({
    path: path,
    isOutline: true,
    outlineColor: '#ffeeff',//轮廓颜色
    borderWeight: 1,//轮廓像素
    strokeColor: "#cdd1d3",//线条颜色
    strokeOpacity: 1,
    strokeWeight: 6,
    // 折线样式还支持 'dashed'，线段
    strokeStyle: "solid",
    // strokeStyle是dashed时有效
    //strokeDasharray: [15, 5],
    lineJoin: 'round',
    lineCap: 'round',
    zIndex: 50,
});


var stream = new AMap.Polyline({
    path: path_stream,            // 设置线覆盖物路径
    showDir: true,
    strokeColor: '#3366bb',   // 线颜色
    strokeWeight: 20           // 线宽
});

map.add([polyline, stream]);//地图加载折线图
//map.setFitView();